#include <TrackView.h>


/********************************************
/*              Public
/********************************************/

    /****************************************
    /*          Constructors
    /****************************************/

        TrackView::TrackView(vec4 & lockpoint)
        {
            m_Alpha=0.0f;
            m_Teta=0.0f;
            m_ProjectionMatrix    =   new Matrix4();
            m_ProjectionMatrix    =       &Matrix4::Perspective(1.5,1.0f,0.001,1000);

            m_ViewMatrix      =   new Matrix4();
            m_Transform =new Transform(*m_ViewMatrix);
            m_Transform->IsView=true;
            m_Radius=15.0f;
            m_Center    =   &lockpoint;

        }

    /****************************************/
    /*          Methods                     */
    /****************************************/



    /****************************************/
    /*          Virtual Methods             */
    /****************************************/


void TrackView::Display(){
}

        void TrackView::Update()
        {
            m_Transform->Translation(vec4::TurnAround(m_Teta,m_Alpha, m_Radius, *m_Center));
            m_Transform->LookAt(*m_Center);
        }


    /****************************************/
    /*          Operator Overload           */
    /****************************************/





